package mp.study.demo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import mp.study.demo.enums.SexEnum;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("mp_user")
public class User {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;
    private Integer age;
    private String UserEmail;
    private SexEnum UserSex;
    private Integer deleted;

    public User(String name, Integer age, String userEmail, SexEnum userSex, Integer deleted)
    {
        this.name = name;
        this.age = age;
        UserEmail = userEmail;
        UserSex = userSex;
        this.deleted = deleted;
    }
}
